/*
 *http://www.apache.org/licenses/LICENSE-2.0
 *Copyright (c) 2021 fullset
 *@ClassName BizException
 *@date 2021/6/27 15:11
 *@author: pangps
 *@Description TODO
 */
package com.fs.core.exception;

public class BizException extends RuntimeException{

    private final BizExceptionEnum bizExceptionEnum;

    public BizException(BizExceptionEnum bizExceptionEnum) {
        super(bizExceptionEnum.getErrorCode()+"："+bizExceptionEnum.getErrorMsg());
        this.bizExceptionEnum = bizExceptionEnum;
    }
    public BizExceptionEnum getBizExceptionEnum() {
        return bizExceptionEnum;
    }
}
